package com.cis467.mrball;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class LevelMenu extends Activity 
	{
	/**
	 * Called when the activity is first created.
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.levelmenu_layout);

		Button backButton = (Button) findViewById(R.id.backButton);
		Button selectButton = (Button) findViewById(R.id.selectButton);

		//goes back to the main menu when clicked
		backButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				finish();
			}
			
		});

		//goes back to the main menu when clicked
		selectButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent i = new Intent(v.getContext(), LevelSelect.class);
                startActivity(i);
			}
			
		});

	}
	}